package com.nuanshui.heatedloan.entity.cms.security;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.google.common.collect.Lists;
import com.nuanshui.heatedloan.entity.IdEntity;

/**
 * 角色
 */
@Entity
@Table(name = "cms_security_role")
public class RoleVO extends IdEntity {
	
	private static final long serialVersionUID = 1L;

	/**
	 * 模块的名称
	 */
	private String name;

	/**
	 * 操作模块的权限
	 */
	@Transient
	private List<String> permissionList = Lists.newArrayList();

	/**
	 * 返回 name 的值
	 * 
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置 name 的值
	 * 
	 * @param name
	 */
	public void setName(final String name) {
		this.name = name;
	}


	/**
	 * 返回 permissionList 的值
	 * 
	 * @return permissionList
	 */
	public List<String> getPermissionList() {
		return permissionList;
	}

	/**
	 * 设置 permissionList 的值
	 * 
	 * @param permissionList
	 */
	public void setPermissionList(final List<String> permissionList) {
		this.permissionList = permissionList;
	}

}
